package com.dkm.orproject.utils.utils;

import com.dkm.orproject.SpringContextHolder;
import com.dkm.orproject.dkmoa.dao.OaPersonnelMapper;
import org.springframework.stereotype.Component;

import java.util.TimerTask;

/**
 * @PROJECT_NAME: orproject
 * @DESCRIPTION:
 * @USER: 周佳佳
 * @DATE: 2020/9/21 9:55
 */
@Component
public class RemindTask  extends TimerTask {

    private OaPersonnelMapper orderMapper = SpringContextHolder.getBean(OaPersonnelMapper.class);

    @Override
    public void run() {
        orderMapper.dimissionPersonnel();
        System.gc();
        cancel();
    }
}
